<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>布局练习</title>
     <style>
        div
        {
            margin: 0;
            padding: 0;
        }

        .item
        {
            
            background-color: red;
            position: absolute;
            width: 300px;
            height: 200px;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            margin: auto;   
        }

        .name
        {
            position: absolute;
            width: 80px;
            height: 40px;
            bottom: 0;
            top: 0;
            left: 0;
            right: 0;
            margin: auto;
            background-color: #000;
            color: #fff;
            text-align: center;
        }

        .img img
        {
            width: 300px;
            height: 180px;
            vertical-align: top;
        }
         
        span{
            float: left;
        }

     </style>
     
</head>
<body>
    <div class="item">
        <span class="name">我是陈钦</span>
    </div>

    <div class="img">
        <img src="../image/bili02.png" alt="">
        <div>我是狗</div>
    </div>

    <div class="text">
        <span>我是狗</span>
        <span>我是狗</span>
        <span>我是狗</span>
        <span>我是狗</span>
        <span>我是狗</span>
    </div>
</body>
</html>